# Contributor: Katie Holly <holly@fuslvz.ws>
# Maintainer: Katie Holly <holly@fuslvz.ws>
pkgname=obfs4proxy
pkgver=0.0.13
pkgrel=0
pkgdesc="pluggable transport proxy for Tor, implementing obfs4"
url="https://gitweb.torproject.org/pluggable-transports/obfs4.git/"
arch="x86_64 x86 armv7"
license="BSD-3-Clause"
makedepends="go"
options="!strip chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/Yawning/obfs4/archive/obfs4proxy-$pkgver.tar.gz"
builddir="$srcdir"/obfs4-$pkgname-$pkgver

export GOPATH="$srcdir"

build() {
	go build -v -o ./$pkgname-executable ./$pkgname
}

check() {
	go test -short ./...
}

package() {
	install -Dm755 $pkgname-executable "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
5be0eacba6848ba89e7b7b873741e39e7807745f4648af63a81000ce1d2380fb0632d4b04e832071ca8051312360a0b79bb8d86f1e0f02a8bb5344fbfeeaf3fe  obfs4proxy-0.0.13.tar.gz
"
